package com.atwisdom.star.controller;

import com.atwisdom.star.common.actionType.entity.EntityActionType;
import com.atwisdom.star.common.vo.ResultInfo;
import com.atwisdom.star.log.aop.StarAnnotation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/actionType")
public class ActionTypeController {

    /**
     * @return 返回所有的actionType
     * 这个功能暂时不实现
     */
    @StarAnnotation
    @PostMapping(value = "/all")
    public ResultInfo<?> all() {
        return null;
    }

    public static void main(String[] args) {
        EntityActionType[] actionTypes = EntityActionType.values();
        System.out.println(actionTypes[0].getCode());
    }

}
